-- add_requires("linux-headers", {system = true, configs = {driver_modules = true}})
-- add_packages("linux-headers")

target("dmatestdriver")
    set_values("linux.driver.debug", true)
    add_cflags("-g -O1") -- O0 会编译失败
    add_rules("platform.linux.driver")
    set_values("linux.driver.linux-headers", "/root/documents/build/linux.build")
    -- set_values("linux.driver.linux-headers", "/lib/modules/5.15.0-60-generic/build")
    add_files("src/*.c")

target_end()
